home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 7.33 (October)
/
PC Gamer Disc 7.33 (October 2003).ISO
/
Data
/
items.pcg
/
scripts
/
DefineButton2_122
/
BUTTONCONDACTION on(release).as
< prev
next >
Wrap
Text File
|
2003-07-17
|
922b
|
23 lines
on(release){
if(_parent.currentTab == 1)
{
_parent.selectItem(9,_parent.demonumber9,_parent.lastButton,"TheCurrentDemo","demos",_parent.demoCount,"currentDemoCount","lastDemoBox");
}
if(_parent.currentTab == 2)
{
_parent.selectItem(9,_parent.extranumber9,_parent.lastButton,"TheCurrentExtra","extras",_parent.extraCount,"currentExtraCount","lastExtraBox");
}
if(_parent.currentTab == 3)
{
if(eval("_parent.filetype" + _parent.filenumber9) != "separator")
{
_parent.selectItem(9,_parent.filenumber9,_parent.lastButton,"TheCurrentFile","file",_parent.fileCount,"currentFileCount","lastFileBox");
}
}
if(_parent.currentTab == 4)
{
var i = _parent.gamenumber9 - 1;
_parent.selectItem(9,_parent.arGamesIndexSlice[i],_parent.lastButton,"TheCurrentGame","database",_parent.dbCount,"currentGameCount","lastGameBox");
}
}